AskPath ( "Please enter the desired location for Sound Companion Demo?", szDefPath, szResultPath );
if LAST_RESULT = 0 then call ConfirmCancel;
endif;
if szResultPath = SRCDIR then
MessageBox ( "The target location must be different than the installation source. Please specify a different location.", SEVERE );
goto TargetLocation;
endif;
CreateDir( szResultPath );
if LAST_RESULT = 0 then goto DirCreated;
endif;
MessageBox ( "Unable to create directory. Please enter a valid path", SEVERE );
goto TargetLocation;
DirCreated:
GetDiskSpace ( szResultPath );
if LAST_RESULT < SPACE_NEEDED then
MessageBox ( "Not enough space on the hard drive specified. 1.5 megabytes of free hard disk space are needed. Please make more room or try another drive.", SEVERE );